<template>
  <div class="successful-case-item">
    <div class="successfun-case-header">
      <img src="../assets/img/successful-icon.png" alt="">
      <span>{{year}}十大品牌荣誉榜单</span>
    </div>
    <h1>中国{{catName}}排行榜</h1>
    <p>{{date}}</p>
    <div class="btn">去看看</div>
  </div>
</template>

<script>
export default {
  props: {
    catName: {
      type: String,
      default: ''
    },
    year: {
      type: String,
      default: ''
    },
    date: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped lang="scss">
.successful-case-item {
  position: relative;
  width: 6.9rem;
  margin: 0 auto 0.3rem;
  background: #fff url(../assets/img/successful-bg.png) 4.6rem bottom no-repeat;
  background-size: 1.97rem 2.1rem;
  box-shadow: 0 0 0.24rem 0 rgba(0, 0, 0, 0.1);
  border-radius: 0.08rem;
}
.successfun-case-header {
  padding: 0.3rem 0 0 0.35rem;
  img {
    width: 0.47rem;
    height: 0.47rem;
    vertical-align: middle;
  }
  span {
    font-size: 0.28rem;
    color: #222;
    margin-left: 0.2rem;
  }
}
.successful-case-item {
  h1 {
    width: 4.8rem;
    font-size: 0.36rem;
    color: #222;
    margin: 0.37rem 0 0 0.39rem;
  }
  p {
    font-size: 0.24rem;
    color: #666;
    margin: 0.17rem 0 0 0.4rem;
    padding-bottom: 0.2rem;
  }
  .btn {
    position: absolute;
    width: 1.52rem;
    padding: 0.14rem 0;
    background-color: #ffd74d;
    border-radius: 0.26rem;
    font-size: 0.28rem;
    line-height: 0.28rem;
    color: #574f32;
    right: 0.33rem;
    bottom: 0.46rem;
  }
}
</style>
